home *** CD-ROM | disk | FTP | other *** search
- Path: ohstpy.mps.ohio-state.edu!vancleef
- From: vancleef@ohstpy.mps.ohio-state.edu
- Newsgroups: comp.lang.c++
- Subject: Re: Automatic data segment ???
- Message-ID: <1996Jan24.033619.8807@ohstpy>
- Date: 24 Jan 96 03:36:19 -0500
- References: <NEWTNews.822036255.26727.danipear@dialup.netvision.net.il> <1996Jan24.042823.29086@merlin.hgc.edu>
- Organization: The Ohio State University, Department of Physics
-
- In article <1996Jan24.042823.29086@merlin.hgc.edu>, weat4122@hgc.edu (gerard weatherby) writes:
- > In article <4dun33$agf@news.cyberportal.net> dtrues <204.97.234.41> writes:
- >>Dani Pear <danipear@netvision.net.il> wrote:
- >>>
- >>>Hi,
- >>>In our windows application that is in C++, we can not
- >>>link and create an EXE, and we receive the following
- >>>message: "Automatic data segment exceeds 64K".
- >>>What are the reasons for this error.
- >>>
- >>>Email : danipear@netvision.net.il
- >>>
-
-
- I ran into this problem a few days ago using Borland 3.1 C++. I
- set the far data threshold to 0 and set automatic far data (or something
- like that) and that helped trmendously. Of course I am
- using far pointers now but I think I can live with it.
-
- Note you wont run into this stuff in a flat model, but thats
- another issue.
-
- -G
-
-
- >>
- >>
- >>We have run into the same problem. It seems that you are only allowed
- >>64K of space for the heap, stack, and all of the automatic variables used
- >>in the code (or something to that effect). Keep in mind that an array of
- >>classes can tie up memory quickly. We get around that by dynamically
- >>allocating most of our classes. We use the large memory model and
- >>nothing but far pointers. (You will need to use far pointers,
- >>otherwise you will be allocating memory from the local heap, which
- >>tends to fill up pretty quickly. We have developed a library that will
- >>allow us to use more than the 640K memory on todays computers. The
- >>method is described in Peter Norton and Pal Yao's book on windows
- >>programming.
- >>
- >>Good luck and get out of Bill's 16-bit environment as soon as possible.
- >>
- >>Dan
- >>
- >
- > If you're using Visual C++ 1.52, look into the eliminate duplicate
- > strings switch /Gf, I think, and the /Gt automatic far data switches.
-